.yf-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.yf-switch__inner {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background-color: #333;
}

.yf-switch__adjunct {
    display: none;
}

.yf-switch__dot {
    transition: all 1s;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background-color: aqua;
    border-radius: 50%;
}

.yf-switch__adjunct:checked+.yf-switch__inner {
    background-color: aqua;
}

.yf-switch__adjunct:checked+.yf-switch__inner .yf-switch__dot {
    transform: translate3d(30px, 0, 0);
    background-color: #333;
}